package com.idea.common.utils;

import com.google.gson.Gson;

public class ThreadLocalGson {

	private static final ThreadLocal<Gson> gsons = new ThreadLocal<Gson>();
	
	
	public static Gson getGson(){
		if(null == gsons.get()){
			gsons.set(new Gson());
		}
		return gsons.get();
	}
	
	
}
